package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.entity.AbdulBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;

/**
 * 美团点评API配置对象 meituan_settings
 *
 * @author ruoyi
 * @date 2025-05-14
 */
@Data
@ApiModel("美团点评API配置")
public class MeituanSettings extends AbdulBaseEntity
 {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    private Long id;

    /**
     * 门店名称
     */
    @Excel(name = "门店名称")
    @ApiModelProperty("门店名称")
    private String storeName;

    /**
     * 门店编号
     */
    @Excel(name = "门店编号")
    @ApiModelProperty("门店编号")
    private String storeCode;

    /**
     * 美团点评AppKey
     */
    @Excel(name = "美团点评AppKey")
    @ApiModelProperty("美团点评AppKey")
    private String meituanAppKey;

    /**
     * 店铺UUID
     */
    @Excel(name = "店铺UUID")
    @ApiModelProperty("店铺UUID")
    private String storeUuid;

    /**
     * 授权可刷新次数
     */
    @Excel(name = "授权可刷新次数")
    @ApiModelProperty("授权可刷新次数")
    private Long refreshAuthCount;

    /**
     * 美团点评AppSecret
     */
    @Excel(name = "美团点评AppSecret")
    @ApiModelProperty("美团点评AppSecret")
    private String meituanSecret;

    /**
     * 访问令牌
     */
    @Excel(name = "访问令牌")
    @ApiModelProperty("访问令牌")
    private String accessToken;

    /**
     * 刷新令牌
     */
    @Excel(name = "刷新令牌")
    @ApiModelProperty("刷新令牌")
    private String refreshToken;

    /**
     * 令牌过期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "令牌过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("令牌过期时间")
    private Date tokenExpireTime;

    /**
     * 最后刷新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后刷新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("最后刷新时间")
    private Date lastRefreshTime;

    /**
     * API状态(0-禁用,1-启用)
     */
    @Excel(name = "API状态(0-禁用,1-启用)")
    @ApiModelProperty("API状态(0-禁用,1-启用)")
    private Integer apiStatus;

    /**
     * 同步状态(0-未同步,1-已同步)
     */
    @Excel(name = "同步状态(0-未同步,1-已同步)")
    @ApiModelProperty("同步状态(0-未同步,1-已同步)")
    private Integer syncStatus;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    @ApiModelProperty("手机号")
    private String phone;

}